package com.ruoyi.answer.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试卷答题记录业务对象 exam_answer_sheet
 *
 * @author ruoyi
 * @date 2022-08-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ExamAnswerSheetBo extends BaseEntity {

    /**
     * 自动编号
     */
    @NotNull(message = "自动编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 考试记录编号
     */
    @NotNull(message = "考试记录编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long recordId;

    /**
     * 题目编号
     */
    @NotNull(message = "题目编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long questionId;

    /**
     * 答题附件
     */
    @NotBlank(message = "答题附件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appendixLocation;

    /**
     * 用户答案
     */
    @NotBlank(message = "用户答案不能为空", groups = { AddGroup.class, EditGroup.class })
    private String answer;

    /**
     * 用户得分
     */
    @NotNull(message = "用户得分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long score;


}
